/**
  ******************************************************************************
  * @author     Chris
  * @since      2023/10/11 13:57
  *
  * @file       pd_s_spi.h
  * @brief      Head file of Simulated SPI Peripheral Driver.
  *
  * @note       This file contains the hardware driver's function declaration 
  *             for the Simulated SPI.
  *
  * @warning    None.
  ******************************************************************************
  * Change Logs:
  *   Date           Author       Notes
  *   2023/10/11     Chris        the first version
  *
  ******************************************************************************
  */

#ifndef JXTECH_PD_S_SPI_H
#define JXTECH_PD_S_SPI_H

#include "stm32g4xx.h"

// SPI1 片选线
#define SPI1_NSS_NRF24L01   0
#define SPI1_NSS_W25QXX     1

void PD_S_SPI1_Init(void);

void PD_S_SPI1_Start(uint8_t pin);

void PD_S_SPI1_Stop(uint8_t pin);

uint8_t PD_S_SPI1_SwapByte(uint8_t dat);

#endif // JXTECH_PD_S_SPI_H
